# 工作日的进步
import DayDayUpQ1


def dayUpFun(df):
    dayUp = 1
    for i in range(DayDayUpQ1.YEAR_DAY):
        if i % 7 in [0, 6]:
            dayUp *= (1 - 0.01)
        else:
            dayUp *= (1 + df)
    return dayUp


dayFactor = 0.01
target = pow(1.01, DayDayUpQ1.YEAR_DAY)

while dayUpFun(dayFactor) < target:
    dayFactor += 0.001

print("每天需要努力：{:.3f}".format(dayFactor))
